home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interplay's Learn to Program Basic (Review Copy)
/
Learn to Program Basic Review Copy (Interplay)(June 23, 1998).ISO
/
pc
/
ltpbasic
/
refxmpl
/
timer.bas
< prev
next >
Wrap
BASIC Source File
|
1998-02-21
|
430b
|
24 lines
rem Timer() example
cls
print "This program shows how to use"
print "the timer() function to time"
print "something."
print
starttime = timer()
print starttime;
print " is the starting milliseconds."
print "Wait a few seconds, then hit return."
input a$
currenttime = timer()
elapsedtime = currenttime - starttime
print elapsedtime;" milliseconds have elapsed."
print "That's about ";int(elapsedtime/1000);" seconds."
end